package com.wanjia.estate.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.io.Serializable;

@Data
@Configuration
@ConfigurationProperties("http-request")
public class HttpRequestProperties {

    private RemoteService remote;
    private LocalService local;
    private DefaultConfig config;

    @Data
    public static class DefaultConfig implements Serializable {
        private String username;
        private String password;
        private String regioncode;
        private String orgid;
        private String size;
        private String page;
    }

    @Data
    public static class RemoteService implements Serializable {
        private String propertyUrl;
        private String suitUrl;
        private String registratUrl;
        private String contractUrl;

        // 一窗接口组
        private String getycslbhUrl;
        private String setywxxUrl;
        private String setdzclUrl;
        private String updatejfztUrl;
        private String updateywztUrl;
        private String deleteywxxUrl;



        // 不动产接口组
        private String tokenUrl;
        private String gmjbxxUrl;
        private String jmhxxUrl;
        private String hyxxchxUrl;
        private String hydjxxhysfUrl;
        private String hydjxxhygrUrl;
        private String rkkjzxxcxUrl;
        private String rkksfhcUrl;
        private String mzbhydjxxUrl;

        // 税务接口组
        private String a001Url;
        private String a003Url;
        private String a004Url;
        private String a006Url;
        private String a010Url;
        private String a011Url;
        private String a014Url;
        private String a015Url;
        private String a020Url;
        private String a023Url;
        private String c001Url;

        // OCR接口组
        private String ocrUrl;
        private String ocrsacnUrl;

        //农商行接口组
        private String bszfUrl;
        private String ddztcxUrl;
        private String tkUrl;
        private String tkztcxUrl;


    }

    @Data
    public static class LocalService implements Serializable {

        // 打印机接口组
        private String stampUrl;
        private String startPrinterPaperDriveUrl;
        private String startScannerPaperDriveUrl;
        private String stopPrinterPaperDriveUrl;
        private String stopScannerPaperDriveUrl;
        private String openPaperDoorUrl;
        private String openSealDoorUrl;
        private String openPaperOutDoorUrl;
        private String statusPaperDoorUrl;
        private String statusSealDoorUrl;
        private String statusPaperOutDoorUrl;

        private String newOpenPaperDoorUrl;
        private String newStatusPaperDoorUrl;
        private String newStampUrl;
        private String newStartPrinterPaperDriveUrl;
        private String newStopPrinterPaperDriveUrl;



    }

    public String getNewOpenPaperDoorUrl() {
        return local.newOpenPaperDoorUrl;
    }

    public String getNewStatusPaperDoorUrl() {
        return local.newStatusPaperDoorUrl;
    }

    public String getNewStampUrl() {
        return local.newStampUrl;
    }

    public String getNewStartPrinterPaperDriveUrl() {
        return local.newStartPrinterPaperDriveUrl;
    }

    public String getNewStopPrinterPaperDriveUrl() {
        return local.newStopPrinterPaperDriveUrl;
    }

    public String getPropertyUrl() {
        return remote.propertyUrl;
    }

    public String getSuitUrl() {
        return remote.suitUrl;
    }

    public String getContractUrl() {
        return remote.contractUrl;
    }

    public String getTokenUrl() {
        return remote.tokenUrl;
    }

    public String getGmjbxxUrl() {
        return remote.gmjbxxUrl;
    }

    public String getJmhxxUrl() {
        return remote.jmhxxUrl;
    }

    public String getHyxxchxUrl() {
        return remote.hyxxchxUrl;
    }

    public String getHydjxxhysfUrl() {
        return remote.hydjxxhysfUrl;
    }

    public String getHydjxxhygrUrl() {
        return remote.hydjxxhygrUrl;
    }

    public String getRkkjzxxcxUrl() {
        return remote.rkkjzxxcxUrl;
    }

    public String getRkksfhcUrl() {
        return remote.rkksfhcUrl;
    }

    public String getMzbhydjxxUrl() {
        return remote.mzbhydjxxUrl;
    }

    public String getStampUrl() {
        return local.stampUrl;
    }

    public String getStartPrinterPaperDriveUrl() {
        return local.startPrinterPaperDriveUrl;
    }

    public String getStartScannerPaperDriveUrl() {
        return local.startScannerPaperDriveUrl;
    }

    public String getStopPrinterPaperDriveUrl() {
        return local.stopPrinterPaperDriveUrl;
    }

    public String getStopScannerPaperDriveUrl() {
        return local.stopScannerPaperDriveUrl;
    }

    public String getOpenPaperDoorUrl() {
        return local.openPaperDoorUrl;
    }

    public String getOpenSealDoorUrl() {
        return local.openSealDoorUrl;
    }

    public String getOpenPaperOutDoorUrl() {
        return local.openPaperOutDoorUrl;
    }

    public String getStatusPaperDoorUrl() {
        return local.statusPaperDoorUrl;
    }

    public String getStatusSealDoorUrl() {
        return local.statusSealDoorUrl;
    }

    public String getStatusPaperOutDoorUrl() {
        return local.statusPaperOutDoorUrl;
    }

    public String getRegistratUrl() {
        return remote.registratUrl;
    }

    public String getGetycslbhUrl() {
        return remote.getycslbhUrl;
    }

    public String getSetywxxUrl() {
        return remote.setywxxUrl;
    }

    public String getSetdzclUrl() {
        return remote.setdzclUrl;
    }

    public String getUpdateywztUrl() {
        return remote.updateywztUrl;
    }

    public String getDeleteywxxUrl() {
        return remote.deleteywxxUrl;
    }

    public String getBszfUrl() {
        return remote.bszfUrl;
    }

    public String getDdztcxUrl() {
        return remote.ddztcxUrl;
    }

    public String getTkUrl() {
        return remote.tkUrl;
    }

    public String getTkztcxUrl() {
        return remote.tkztcxUrl;
    }

}
